package code;

import java.util.Scanner;

public class QuestionNum_02_7 {
    public static void main(String[] args) {
        int num=123;
        int bit;
        int ten_bits;
        int hundred_bits;

        bit = num % 10;
        ten_bits = num / 10 % 10;
        hundred_bits = num / 100;

        System.out.println("个位是:"+bit+",十位是:"+ten_bits+",百位是:"+hundred_bits);

    }
}
